﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchPorlet.ascx.vb" Inherits="Control_WhatCookToDay_SearchPorlet" %>
 <script type="text/javascript">
     function ajaxJquery() {
         $(document).ready(function () {
             $("#<%=txtdatepicker.ClientID %>").datepicker();

             $("#<%=txtRecipename.ClientId %>").focus(function () {
                 if (this.value != "" && this.value != "Tên món ăn") {
                     return;
                 }
                 else
                     this.value = "";
             });

             $("#<%=txtRecipename.ClientId %>").blur(function () {
                 if (this.value == "") {
                     this.value = "Tên món ăn";
                     return;
                 }
             });

             $("#<%=txtdatepicker.ClientId %>").focus(function () {
                 if (this.value != "" && this.value != "Ngày phát sóng") {
                     return;
                 }
                 else
                     this.value = "";
             });
             $("#<%=txtdatepicker.ClientId %>").blur(function () {
                 if (this.value == "") {
                     this.value = "Ngày phát sóng";
                     return;
                 }
             });

         });
     }

     function CheckConditionSearch() {
         if ($("#<%=txtRecipename.ClientID %>").val() == "Tên món ăn" && $("#<%=txtdatepicker.ClientId %>").val() == "Ngày phát sóng" && $("#<%=ddlMeterial.ClientId %>").val() == "0" && $("#<%=ddlMethod.ClientId %>").val() == "0") {
             return false;
         }
         return true;
     }
     
    </script>




<div class="porlet_searchsubdishes">
    <div class="bgtop_porlet_searchsubdishes">&nbsp;</div>
    <div class="bgmid_porlet_searchsubdishes">
            <!-- title porlet -->
            <div class="rowtitle_porlet_searchsubdishes">
                    <div class="celltitle_searchsubdishes_L"></div>
                    <div class="celltitle_searchsubdishes_M">
                            <div class="texttitle_porlet_cuisine">
                                <a href="">TÌM MÓN NGON</a>
                            </div>
                    </div>
                    <div class="celltitle_searchsubdishes_R"></div>
            </div>
            <!-- title porlet end-->
                                            
            <!-- cell find -->
            
            <div class="bgbottom_porlet_searchsubdishes_img">
                
    	            <div>
                        <asp:TextBox ID="txtRecipename" runat="server" CssClass="textbox_searchsubdishes"   Text="Tên món ăn"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ControlToValidate = "txtRecipename" InitialValue = "Tên món ăn" Display="None"></asp:RequiredFieldValidator>
                    </div>
                    <div><asp:DropDownList ID="ddlMeterial" runat="server" CssClass="textbox_searchsubdishes"></asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ControlToValidate = "ddlMeterial" InitialValue = "0" Display="None"></asp:RequiredFieldValidator>
                    </div>
                    <div><asp:DropDownList ID="ddlMethod" runat="server"  CssClass="textbox_searchsubdishes"></asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                            ControlToValidate = "ddlMethod" InitialValue = "0" Display="None"></asp:RequiredFieldValidator>
                    </div>
                        <div style="display:none"><asp:TextBox ID="txtdatepicker" runat="server" Text="Ngày phát sóng" ReadOnly="true" CssClass="textbox_searchsubdishes"  ></asp:TextBox>
                
                        </div>
                    <div style="margin:5px 0px 0px 10px; float:left;">
                        <asp:Button ID="btnSearch" CssClass="btn" CausesValidation = "False" Text="Tìm" runat="server"></asp:Button>
                    </div>
                

                    
                    
            </div>
            <!-- cell find end -->
                                            
            
    </div>
    
                                	
</div>
    
    


<asp:ValidationSummary ID="ValidationSummary1" runat="server" 
    ShowSummary="False" ShowMessageBox="True" />


